home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / ptg120co.zip / PTG_REF.DOC < prev    next >
Text File  |  1993-11-06  |  46KB  |  1,771 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.             ▀▀▀▀▀   ▀    ▀▀▀▀▀
  15.            ▀▀   ▀▀  ▀▄  ▀▀        ▀▀   ▀  ▀
  16.            ▀▀▀▀▀▀  ▄▀  ▀▀▀  ▀▀▀▀ ▀▄▄▀ ▀ ▀ ▀
  17.            ▀▀       ▀   ▀▀   ▀▀  ▀    ▀  ▀▀   1.20
  18.            ▀▀        ▀▀   ▀▀▀▀▀    ▀▀  ▀   ▀
  19.  
  20.  
  21.            (c) Copyright 1991, 1993 by Nederware, a dutch software company
  22.  
  23.  
  24.            Reference Guide
  25.  
  26.  
  27.            written by Berend de Boer
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                            PtGen reference manual - page 1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.                                   TABLE OF CONTENTS
  67.  
  68.  
  69.  
  70.           OBJECT APPLICATION  . . . . . . . . . . . . . . . . . . . . .   1
  71.                Creating a new application . . . . . . . . . . . . . . .   1
  72.                Loading an application . . . . . . . . . . . . . . . . .   1
  73.                Application configuration  . . . . . . . . . . . . . . .   1
  74.                Editing an application . . . . . . . . . . . . . . . . .   1
  75.                Saving an application  . . . . . . . . . . . . . . . . .   2
  76.  
  77.           OBJECT MENUBAR  . . . . . . . . . . . . . . . . . . . . . . .   3
  78.                Creating a Line  . . . . . . . . . . . . . . . . . . . .   3
  79.                Creating a Submenu . . . . . . . . . . . . . . . . . . .   3
  80.                Creating a Menu entry  . . . . . . . . . . . . . . . . .   3
  81.                Editing menuitems  . . . . . . . . . . . . . . . . . . .   3
  82.                Deleting menuitems . . . . . . . . . . . . . . . . . . .   3
  83.                Creating Links . . . . . . . . . . . . . . . . . . . . .   4
  84.                Deleting Links . . . . . . . . . . . . . . . . . . . . .   4
  85.  
  86.           OBJECT STATUSLINE . . . . . . . . . . . . . . . . . . . . . .   5
  87.  
  88.           OBJECT DESKTOP  . . . . . . . . . . . . . . . . . . . . . . .   6
  89.                Desktop Local Menu . . . . . . . . . . . . . . . . . . .   6
  90.  
  91.           COMMANDS  . . . . . . . . . . . . . . . . . . . . . . . . . .   7
  92.  
  93.           HELPTEXTS . . . . . . . . . . . . . . . . . . . . . . . . . .   8
  94.                Helpconstants  . . . . . . . . . . . . . . . . . . . . .   8
  95.                Statusline helptext  . . . . . . . . . . . . . . . . . .   8
  96.                HelpWindow text  . . . . . . . . . . . . . . . . . . . .   8
  97.                Help dialog box  . . . . . . . . . . . . . . . . . . . .   9
  98.  
  99.           OBJECTS DIALOG BOX  . . . . . . . . . . . . . . . . . . . . .  10
  100.                Creating objects . . . . . . . . . . . . . . . . . . . .  10
  101.                Editing objects  . . . . . . . . . . . . . . . . . . . .  10
  102.                Deleting objects . . . . . . . . . . . . . . . . . . . .  10
  103.                Cloning objects  . . . . . . . . . . . . . . . . . . . .  10
  104.  
  105.           OBJECT DIALOG BOX . . . . . . . . . . . . . . . . . . . . . .  11
  106.                The Dialog Local Menu  . . . . . . . . . . . . . . . . .  11
  107.                Dialog settings  . . . . . . . . . . . . . . . . . . . .  11
  108.                The Dialog subviews  . . . . . . . . . . . . . . . . . .  11
  109.                     Button  . . . . . . . . . . . . . . . . . . . . . .  12
  110.                     Static text . . . . . . . . . . . . . . . . . . . .  12
  111.                     Label . . . . . . . . . . . . . . . . . . . . . . .  12
  112.                     Inputline . . . . . . . . . . . . . . . . . . . . .  12
  113.                     Memo  . . . . . . . . . . . . . . . . . . . . . . .  13
  114.                     Checkboxes  . . . . . . . . . . . . . . . . . . . .  13
  115.                     Radiobuttons  . . . . . . . . . . . . . . . . . . .  13
  116.                     Spinbuttons . . . . . . . . . . . . . . . . . . . .  13
  117.                     ListViewer  . . . . . . . . . . . . . . . . . . . .  13
  118.  
  119.                            PtGen reference manual - page i
  120.  
  121.  
  122.  
  123.  
  124.  
  125.                Moving and Resizing subviews . . . . . . . . . . . . . .  14
  126.                Changing the Tab-order of the subviews . . . . . . . . .  14
  127.                Creating a record  . . . . . . . . . . . . . . . . . . .  14
  128.                Code button  . . . . . . . . . . . . . . . . . . . . . .  15
  129.  
  130.           OBJECT POPUP  . . . . . . . . . . . . . . . . . . . . . . . .  16
  131.  
  132.           UNIT BBDLG  . . . . . . . . . . . . . . . . . . . . . . . . .  17
  133.  
  134.           UNIT BBERROR  . . . . . . . . . . . . . . . . . . . . . . . .  18
  135.  
  136.           UNIT BBFILE . . . . . . . . . . . . . . . . . . . . . . . . .  19
  137.  
  138.           UNIT BBSTRRES . . . . . . . . . . . . . . . . . . . . . . . .  21
  139.  
  140.           UNIT BBUTIL . . . . . . . . . . . . . . . . . . . . . . . . .  22
  141.  
  142.           UNIT BBVALIDATE . . . . . . . . . . . . . . . . . . . . . . .  24
  143.  
  144.           PTGEN TECHNICAL INFORMATION . . . . . . . . . . . . . . . . .  25
  145.  
  146.           ERROR CODES . . . . . . . . . . . . . . . . . . . . . . . . .  26
  147.  
  148.           INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.                            PtGen reference manual - page ii
  179.  
  180.  
  181.  
  182.  
  183.  
  184.                                   OBJECT APPLICATION
  185.  
  186.  
  187.           PtGen is application oriented, that it: it assumes that you
  188.           develop complete applications with PtGen. Although it is possible
  189.           just to use the dialog box editing features alone, you won't take
  190.           full advantage of PtGen. This chapter discusses the application
  191.           object you create.
  192.  
  193.  
  194.           Creating a new application
  195.  
  196.           If you want to create a new application, select File|New from the
  197.           menubar. The application configuration dialog box pops up. See
  198.           the section about Application configuration for further details.
  199.           Next you can edit your application.
  200.  
  201.  
  202.           Loading an application
  203.  
  204.           Select File|Open to load a previous saved application. From the
  205.           File dialog box choose the file with the application you want to
  206.           load.
  207.  
  208.  
  209.           Application configuration
  210.  
  211.           For every application you have to specify:
  212.           1.   its name. PtGen will automatically prefix the name (and any
  213.                name) with a 'T'
  214.           2.   the language to use: English or Dutch.
  215.           3.   If it uses a helpfile and if yes, the name of the ascii
  216.                version of that helpfile. Do not specify the TVHC compiled
  217.                file, with extension .HLP, but the text file, usually .TXT.
  218.           4.   If it uses the editor. If yes, than the commands from
  219.                EDITORS.PAS are added to the standard available commands
  220.                which can be used when creating menus. Added are:
  221.                     cmNew
  222.                     cmOpen
  223.                     cmSave
  224.                     cmSaveAs
  225.                     cmPrint
  226.           5.   If it uses the background printing unit.
  227.  
  228.  
  229.           Editing an application
  230.  
  231.           Press Edit (Ctrl-F8) or select Edit from the menubar to edit your
  232.           application. You can now edit the menubar (see chapter Object
  233.           MenuBar) and statusline (see chapter Object Statusline) and
  234.           create various objects (see chapter Creating Objects).
  235.           After you have edited an application, pressing Alt-X brings you
  236.  
  237.                            PtGen reference manual - page 1
  238.  
  239.  
  240.  
  241.  
  242.  
  243.           back in PtGen. You can now save your application, see chapter
  244.           Saving an application.
  245.  
  246.  
  247.           Saving an application
  248.  
  249.           Select File|Save or File|Save as to save your application. If you
  250.           don't specify an extension, .PAS will be added.
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.                            PtGen reference manual - page 2
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                                     OBJECT MENUBAR
  303.  
  304.  
  305.           PtGen allows you to quickly define menuitems. The parameters you
  306.           can give to a menuitem are the same as the TMenuItem type, which
  307.           is described in the Turbo Vision manual plus some more. The
  308.           following sections describe the various menuitems you can create.
  309.           See the section Creating